/**
 * 文件名称 : Graphics.java
 * <p>
 * 作者信息 : maidou
 * <p>
 * 创建时间 : 2011-7-28, 下午1:13:11
 * <p>
 * 版权声明 : Copyright (c) 2009-2012 CIeNET Ltd. All rights reserved
 * <p>
 * 评审记录 :
 * <p>
 */

package com.ttomato.game.framework;


/**
 * 请在这里增加文件描述
 * <p>
 */
public interface Graphics
{
    public static enum PixmapFormat
    {
        ARGB888, ARGB4444, RGB565
    }
    
    public Pixmap newPixmap(String fileName, PixmapFormat format);
    
    public void clear(int color);
    
    public void drawPixel(int x, int y, int color);
    
    public void drawLine(int x, int y, int x2, int y2, int color);
    
    public void drawRect(int x, int y, int width, int height, int color);
    
    public void drawPixmap(Pixmap pixmap, int x, int y, int srcX, int srcY,
            int srcWidth, int srcHeight);
    
    public void drawPixmap(Pixmap pixmap, int x, int y);
    
    public int getWidth();
    
    public int getHeight();
    
}
